package cn.haoxsf.app.system.model.vo;

import lombok.Data;

import java.util.List;

/**
 * @program: rest
 * @description: 分页返回
 * @author: Ele qvbanfm@qq.com
 * @create: 2019-12-29 09:54
 **/
@Data
public class ResultPage<T> {
    /*
       每页几条
    */

    private Integer limit = 5;
    /*
        第几页
     */
    private Integer page = 1;
    /*
       总数
    */
    private Integer total;
    /*
        数据
     */
    private List<T> data;

    public ResultPage(Long limit, Long page, Long total, List<T> data) {
        this.limit = limit.hashCode();
        this.page = page.hashCode();
        this.total = total.hashCode();
        this.data = data;
    }

    public ResultPage() {
    }
}
